
import {routers} from './router';
import React from 'react'
import { createBrowserRouter, RouterProvider } from 'react-router-dom'

import IndexPage from './view';
import './App.css';
// import Head from './component/head';

const router = createBrowserRouter([
  {
    path: '/',
    Component:React.lazy(()=> import('./view'))//IndexPage
  }
])

// console.log('App->', { AppRoute});
    function App() {
      // return (
      //   <div className="App">
      //     <Head name="123" />
      //     <div className='view'>
      //       <div className='viewMain'>
      //           {AppRoute}
      //       </div>
      //     </div>
      //   </div>
       
       
      // );
      return (<RouterProvider router={routers} />)
    }
export default App;